import request from '@/utils/request'

export function getOrders(user_id) {
  return request({
    url: '/order/find',
    method: 'get',
    params:{
      user_id,
    }
  })
}

export function updateOrder(order_id) {
  return request({
    url: '/order/update',
    method: 'post',
    data:{
      order_id,
    }
  })
}

export function deleteOrder(order_id) {
  return request({
    url: '/order/delete',
    method: 'delete',
    data:{
      order_id,
    }
  })
}